const app = getApp()

Page({
    data: {
        skin_img: ''
    },
    onLoad() {
        this.setData({
            skin_img: wx.getStorageSync('skin_img')
        })
    },
    retake() {
        wx.navigateTo({
            url: 'index'
        })
    },
    goToSubmitPhoto() {
        wx.navigateTo({
            url: `submit?image=${this.data.skin_img}`
        })
    },
    /**
     * 用户点击右上角分享
     */
    onShareAppMessage() {
        return {
        	path: '/pages/skin/index',
        	title: '我的AI皮肤健康报告出来啦~,你也来试试？'
        }
    }
})
